<layout name='layout_page' />

<div class="row">
	<div class="col-lg-12">
		<div class="row">
			<div class="col-lg-12">
				<ol class="breadcrumb">
					<li><a href="<{:U('Index/index')}>">Home</a></li>
					<li class="active"><span>Events</span></li>
				</ol>
				<h1>Events</h1>
			</div>
		</div>

		<div class="row">
			<div class="col-lg-12">
				<div class="main-box clearfix">
					<form id="ajaxForm" action="<{:U('Message/alldel')}>" method="post" class="form-horizontal form-validata">
					<div class="main-box-body clearfix">
						
						<div class="table-responsive clearfix">
							<table class="table user-list table-hover">
								<thead>
									<tr>
										<th width="150">Event</th>
										<th class="text-center" width="100">Date</th>
										<th class="text-center" width="100">Time</th>
										<th class="text-center" width="130"><span>Address</span></th>
										<th class="text-center" width="130">Commit time</th>
										<th class="text-center" width="130">Actions</th>
									</tr>
								</thead>
								<tbody>
								<?php if($list){ ?>
									<volist name="list" id="vo">
									<tr>
										<td><{$vo.event.title}></td>
										<td class="text-center"><{$vo.event.date|date="F,d,Y (l)",###}></td>
										<td class="text-center"><{$vo.event.time}></td>
										<td class="text-center"><{$vo.event.address}></td>
										<td class="text-center"><{$vo.createTime|date="F,d,y (l) H:i:s",###}></td>
										<td class="text-center"><a href="<{:U('Events/view',array('id'=>$vo['id']))}>" class="table-link"> <span class="fa-stack"> <i class="fa fa-square fa-stack-2x"></i> <i class="fa fa-search-plus fa-stack-1x fa-inverse"></i> </span> </a><?php if($vo['status']==2 || $vo['study']==1){ ?><a onclick="if(!confirm('re you sure you want to delete? ')){return false;}"; href="<{:U('Events/del',array('id'=>$vo['id']))}>" class="table-link danger"><span class="fa-stack"><i class="fa fa-square fa-stack-2x"></i><i class="fa fa-trash-o fa-stack-1x fa-inverse"></i></span></a><?php } ?></td>
									</tr>
									</volist>
									<?php }else{ ?>
									<tr><td><div class="empty">No information</div></td></tr>
									<?php } ?>									
								</tbody>
							</table>
						</div>
					</div>
					</form>
				</div>
			</div>
		</div>

		<div class="row">
			<div class="col-md-12">
				<div class="page">
					<nav>
	  					<ul class="pagination"><{$page}></ul>
	  				</nav>
	  			</div>
			</div>
		</div>	
	</div>
</div>